package com.myApp.exception;

public class RecordNotFoundException extends RuntimeException {

	private static final long serialVersionUID = 1L;
	
	public RecordNotFoundException(Object table, String key){
		
		String tableName = table.getClass().getName();
		
		throw new RuntimeException("Didn't find record in " + tableName + " by key \"" + key + "\"");
	}

}
